package com.crm.model.vo.trainingManager;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author yincuimei
 * @Date 2021/9/7 10:04
 */
@Data
public class TrainingFormVO {

    //主键
    private String trainingId;

    //客户id
    private String customerId;

    //客户名称
    private String customerName;

    //客户类型-- 0企业客户 1个人客户
    private String customerType;

    //客户所有人
    private String customerOwnerName;

    //联系人电话
    private String contactPersonPhone;

    //所有人ID--关联账号表
    private String accountId;

    //所有人姓名
    private String userName;

    //所属分公司ID
    private String companyId;

    //所属分公司
    private String companyName;

    //内训负责人ID--关联账号表ID
    private String trainingChargeId;

    //内训负责人姓名
    private String trainingChargeName;

    //状态 0已完成 1进行中  2已提交  3已分配
    private Integer trainingState;

    //状态(前端显示)
    private String trainingStateText;

    public String getTrainingStateText(){
        String trainingStateText = "";
        if(trainingState != null){
            switch(trainingState){
                case 0 :
                    trainingStateText = "已完成";
                    break;
                case 1 :
                    trainingStateText = "进行中";
                    break;
                case 2 :
                    trainingStateText = "已提交";
                    break;
                case 3 :
                    trainingStateText = "已分配";
                    break;
                default :
                    break;
            }
        }
        return trainingStateText;
    }
}
